package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 种子退回信息对象 seed_return
 * 
 * @author ruoyi
 * @date 2021-07-07
 */
public class SeedReturn extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 退回编号，自动编号，主码 */
    private Long seedReturnId;

    /** 蔬菜类型，外码 */
    @Excel(name = "蔬菜类型，外码")
    private Long cropTypeId;

    /** 种子类型：接穗 | 砧木 */
    @Excel(name = "种子类型：接穗 | 砧木")
    private String seedType;

    /** 品种名称 */
    @Excel(name = "品种名称")
    private String varietyName;

    /** 购自公司 */
    @Excel(name = "购自公司")
    private String originCompany;

    /** 退回量：默认为0 */
    @Excel(name = "退回量：默认为0")
    private Long returnAmount;

    /** 退回时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退回时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date returnTime;

    /** 退回人，外码 */
    @Excel(name = "退回人，外码")
    private Long userId;

    public void setSeedReturnId(Long seedReturnId) 
    {
        this.seedReturnId = seedReturnId;
    }

    public Long getSeedReturnId() 
    {
        return seedReturnId;
    }
    public void setCropTypeId(Long cropTypeId) 
    {
        this.cropTypeId = cropTypeId;
    }

    public Long getCropTypeId() 
    {
        return cropTypeId;
    }
    public void setSeedType(String seedType) 
    {
        this.seedType = seedType;
    }

    public String getSeedType() 
    {
        return seedType;
    }
    public void setVarietyName(String varietyName) 
    {
        this.varietyName = varietyName;
    }

    public String getVarietyName() 
    {
        return varietyName;
    }
    public void setOriginCompany(String originCompany) 
    {
        this.originCompany = originCompany;
    }

    public String getOriginCompany() 
    {
        return originCompany;
    }
    public void setReturnAmount(Long returnAmount) 
    {
        this.returnAmount = returnAmount;
    }

    public Long getReturnAmount() 
    {
        return returnAmount;
    }
    public void setReturnTime(Date returnTime) 
    {
        this.returnTime = returnTime;
    }

    public Date getReturnTime() 
    {
        return returnTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("seedReturnId", getSeedReturnId())
            .append("cropTypeId", getCropTypeId())
            .append("seedType", getSeedType())
            .append("varietyName", getVarietyName())
            .append("originCompany", getOriginCompany())
            .append("returnAmount", getReturnAmount())
            .append("returnTime", getReturnTime())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
